coreutils

Install command:
brew install coreutils

GNU File, Shell, and Text utilities

https://www.gnu.org/software/coreutils/

License: GPL-3.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/coreutils.json

Formula code: coreutils.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 9.12
head ⚡️ HEAD

Revision: 1

Patches:

https://github.com/coreutils/coreutils/commit/782a1e5bc2090212273bb731dceee2cc2a071e54

Depends on:

gmp 6.3.0 GNU multiple precision arithmetic library
openssl@4 4.1.0 Cryptography and SSL/TLS Toolkit

Depends on when building from source:

texinfo 7.3 Official documentation format of the GNU project

Uses from macOS: gperf (build)

Conflicts with: b2sum (because both install `b2sum` binaries), gfold (because both install `gfold` binaries), idutils (because both install `gid` and `gid.1`)

Binaries: b2sum, base32, basenc, dir, dircolors, factor, g[, gb2sum, gbase32, gbase64, gbasename, gbasenc, gcat, gchgrp, gchmod, gchown, gchroot, gcksum, gcomm, gcp, gcsplit, gcut, gdate, gdd, gdf, gdir, gdircolors, gdirname, gdu, gecho, genv, gexpand, gexpr, gfactor, gfalse, gfmt, gfold, ggroups, ghead, ghostid, gid, ginstall, gjoin, glink, gln, glogname, gls, gmd5sum, gmkdir, gmkfifo, gmknod, gmktemp, gmv, gnice, gnl, gnohup, gnproc, gnumfmt, god, gpaste, gpathchk, gpinky, gpr, gprintenv, gprintf, gptx, gpwd, greadlink, grealpath, grm, grmdir, gseq, gsha1sum, gsha224sum, gsha256sum, gsha384sum, gsha512sum, gshred, gshuf, gsleep, gsort, gsplit, gstat, gstdbuf, gstty, gsum, gsync, gtac, gtail, gtee, gtest, gtimeout, gtouch, gtr, gtrue, gtruncate, gtsort, gtty, guname, gunexpand, guniq, gunlink, gusers, gvdir, gwc, gwho, gwhoami, gyes, hostid, md5sum, nproc, numfmt, pinky, ptx, realpath, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum, shred, shuf, stdbuf, tac, timeout, truncate, vdir

Commands also provided by macOS and the commands dir, dircolors, vdir have been installed with the prefix "g".
If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH with:
    PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"

GitHub Packages downloads:

Last 30 days1,159,817
Downloads49,336,208
Analytics install events (30 days)64,700
Downloads / install events (30 days)17.9×

Source: GitHub Packages, fetched 2026-11-14T00:20:24Z. Analytics dates: 2026-10-15 to 2026-11-14. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs64,624193,9611,016,155
Installs (--HEAD)76162787
Installs on Request55,599176,745944,617
Installs on Request (--HEAD)76162783
Build Errors75
Build Errors (--HEAD)13